#include "MyCommon.h"
using namespace MyCommon;
int CSplit::operator()( const char* pszSource, char cSplit /*= ','*/ ){
	m_strAry.clear();
	string strtmp;
	const char* pp = pszSource;
	while( *pp != 0x00 ){
		if( *pp == cSplit ){
			m_strAry.push_back( strtmp );
			strtmp = "";
			pp++;
			continue;
		}
		strtmp += *pp++;
	}
	m_strAry.push_back( strtmp );
	return m_strAry.size();
};
string CSplit::operator[]( int i ){
	if( i > m_strAry.size() )
		return "";
	return m_strAry.at( i );
};